package com.ayit.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ayit.car.pojo.VehicleInteriorColors;
import com.ayit.car.service.VehicleInteriorColorsService;
import com.ayit.car.mapper.VehicleInteriorColorsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 为王下葬
* @description 针对表【vehicle_interior_colors(车辆内饰颜色关联表)】的数据库操作Service实现
* @createDate 2024-06-24 19:15:30
*/
@Service
public class VehicleInteriorColorsServiceImpl extends ServiceImpl<VehicleInteriorColorsMapper, VehicleInteriorColors>
    implements VehicleInteriorColorsService{

    @Autowired
    private VehicleInteriorColorsMapper vehicleInteriorColorsMapper;

    @Override
    public void deleteByCarId(List<Long> ids) {
        for (Long id : ids){
            vehicleInteriorColorsMapper.deleteByCarId(id);
        }
    }
}




